package com.t3rik.mes.emp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.t3rik.mes.emp.domain.EmpAttendanceRecord;
import com.t3rik.mes.emp.mapper.EmpAttendanceRecordMapper;
import com.t3rik.mes.emp.service.IEmpAttendanceRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * 员工考勤记录（手动记录）Service业务层处理
 *
 * @author ykh
 * @date 2025-02-18
 */
@Service
public class EmpAttendanceRecordServiceImpl  extends ServiceImpl<EmpAttendanceRecordMapper, EmpAttendanceRecord> implements IEmpAttendanceRecordService
{
    @Autowired
    private EmpAttendanceRecordMapper empAttendanceRecordMapper;

    @Override
    public List<EmpAttendanceRecord> getRecordByYear(LocalDate startTime, LocalDate endTime) {
        return empAttendanceRecordMapper.getRecordByYear(startTime, endTime);
    }
}
